package com.cblz.bd.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * 系统配置
 *
 * @TableName ba_config
 */
@TableName(value = "ba_config")
@EqualsAndHashCode
@ToString
@Data
public class BaConfig implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 变量名
     */
    private String name;
    /**
     * 分组
     */
    @TableField(value = "`group`")
    private String group;
    /**
     * 变量标题
     */
    private String title;
    /**
     * 变量描述
     */
    private String tip;
    /**
     * 类型:string,number,radio,checkbox,switch,textarea,array,datetime,date,select,selects
     */
    private String type;
    /**
     * 变量值
     */
    private Object value;
    /**
     * 字典数据
     */
    private String content;
    /**
     * 验证规则
     */
    private String rule;
    /**
     * 扩展属性
     */
    private String extend;
    /**
     * 允许删除:0=否,1=是
     */
    @TableField(value = "allow_del")
    private Integer allow_del;
    /**
     * 权重
     */
    private Integer weigh;

}